import Ajax from './ajax'

export async function reqmain() {
  const url = "/data/tesla.json"
  const res = await fetch(url)
  return await res.json()
}

export async function reqshop() {
  const url = "/data/shop.json"
  const res = await fetch(url)
  return await res.json()
}

export async function reqfind(page: any) {
  const url = "/data/find.json"
  const res = await fetch(url)
  return await res.json()
}

// export const reqmain = () => {
//   return Ajax({
//     method: "GET",
//     url: '/tesla'
//   })
// }

// export const reqshop = () => {
//   return Ajax({
//     method: "GET",
//     url: '/shop'
//   })
// }

// export const reqfind = () => {
//   return Ajax({
//     method: "GET",
//     url: `/find/${page}`
//   })
// }


